package crm.entity;

/**
 * SerFeedId entity. @author MyEclipse Persistence Tools
 */

public class SerFeedId implements java.io.Serializable {

	// Fields

	private SerManage serManage;
	private String feedFk;
	private String feedResult;

	// Constructors

	/** default constructor */
	public SerFeedId() {
	}

	/** minimal constructor */
	public SerFeedId(String feedFk) {
		this.feedFk = feedFk;
	}

	/** full constructor */
	public SerFeedId(SerManage serManage, String feedFk, String feedResult) {
		this.serManage = serManage;
		this.feedFk = feedFk;
		this.feedResult = feedResult;
	}

	// Property accessors

	public SerManage getSerManage() {
		return this.serManage;
	}

	public void setSerManage(SerManage serManage) {
		this.serManage = serManage;
	}

	public String getFeedFk() {
		return this.feedFk;
	}

	public void setFeedFk(String feedFk) {
		this.feedFk = feedFk;
	}

	public String getFeedResult() {
		return this.feedResult;
	}

	public void setFeedResult(String feedResult) {
		this.feedResult = feedResult;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SerFeedId))
			return false;
		SerFeedId castOther = (SerFeedId) other;

		return ((this.getSerManage() == castOther.getSerManage()) || (this
				.getSerManage() != null && castOther.getSerManage() != null && this
				.getSerManage().equals(castOther.getSerManage())))
				&& ((this.getFeedFk() == castOther.getFeedFk()) || (this
						.getFeedFk() != null && castOther.getFeedFk() != null && this
						.getFeedFk().equals(castOther.getFeedFk())))
				&& ((this.getFeedResult() == castOther.getFeedResult()) || (this
						.getFeedResult() != null
						&& castOther.getFeedResult() != null && this
						.getFeedResult().equals(castOther.getFeedResult())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getSerManage() == null ? 0 : this.getSerManage().hashCode());
		result = 37 * result
				+ (getFeedFk() == null ? 0 : this.getFeedFk().hashCode());
		result = 37
				* result
				+ (getFeedResult() == null ? 0 : this.getFeedResult()
						.hashCode());
		return result;
	}

}